<?php if(isset($msg)): ?>
<?php echo $msg; ?>
<?php endif; ?>